<?php
$this->extend('_layouts/default');
?>

<?php $this->block('body');?>
<form class="form-horizontal" method="post" action="<?php echo url(ROUTE_JSON_APP, url_sfparams('chap0','reg'));?>">
  <fieldset>
    <legend>用戶注册</legend>
    <div class="control-group">
      <label class="control-label" for="username">用戶名</label>
      <div class="controls">
        <input type="text" class="input-xlarge" id="username" name="username" value="<?php echo G::val($_REQUEST,'username')?>">
        <p class="help-block">你的账户的名称，用于登陆和显示。</p>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="password">密码</label>
      <div class="controls">
        <input type="password" class="input-xlarge" id="password" name="password" value="<?php echo G::val($_REQUEST,'password')?>">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="password-repeat">重复输入密码</label>
      <div class="controls">
        <input type="password" class="input-xlarge" id="password-repeat" name="password-repeat" value="<?php echo G::val($_REQUEST,'password-repeat')?>">
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">注册</button>
    </div>
  </fieldset>
</form>

<?php $this->endblock();?>
